package com.gujiangbo.circular;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author: gujiangbo.co
 * @Contact: 646832012@qq.com
 * @Date: 2022/3/16 16:28
 * @Version: 1.0
 * @Description:
 */
public class ClientSpringContainer {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
        ServiceA a = applicationContext.getBean("a", ServiceA.class);
        ServiceB b = applicationContext.getBean("b", ServiceB.class);
        System.out.println(a);
        System.out.println(b);

    }
}
